package com.itheima.springbootwebtlias.service;

import com.itheima.springbootwebtlias.anno.LogOperation;
import com.itheima.springbootwebtlias.controller.EmpController;
import com.itheima.springbootwebtlias.pojo.Emp;
import com.itheima.springbootwebtlias.pojo.EmpQueryParam;
import com.itheima.springbootwebtlias.pojo.PageResult;

import java.io.FileNotFoundException;
import java.util.List;

public interface EmpService {

    //分页 + 条件查询
    PageResult page(EmpQueryParam queryParam);

    //新增员工
    void add(Emp emp) throws FileNotFoundException;

    //批量删除员工
    void removeBatch(List<Integer> ids);

    //根据id查询员工详情
    Emp queryById(Integer id);

    //更新员工信息
    void update(Emp emp);

    //查询所有员工
    List<Emp> queryAll();

    // 员工登录校验
    Emp checkLogin(Emp emp);
}
